﻿<UserControl x:Class="CivilleWP7.Views.Controls.LeaderboardTileControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    d:DesignHeight="100" d:DesignWidth="480">

    <Border Name="LeaderboardBorder" BorderThickness="2" BorderBrush="Black">
        <Grid x:Name="LayoutRoot">
            <Grid.Background>
                <ImageBrush ImageSource="/CivilleWP7;component/Resources/Images/task_back.jpg" Stretch="UniformToFill" Opacity="0.8" />
            </Grid.Background>
            <Grid.RowDefinitions>
                <RowDefinition Height="60*"/>
                <RowDefinition Height="40*"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="20*" />
                <ColumnDefinition Width="35*" />
                <ColumnDefinition Width="45*" />
            </Grid.ColumnDefinitions>
            <TextBlock Name="UserPositionTextBlock" Style="{StaticResource PhoneTextLargeStyle}" Grid.RowSpan="2" Grid.Column="0" Text="N/A" VerticalAlignment="Center" HorizontalAlignment="Center" />
            <TextBlock Name="UserNameTextBlock" Text="UserName" Grid.Row="0" Grid.Column="1" Grid.ColumnSpan="2" HorizontalAlignment="Left" VerticalAlignment="Center" Style="{StaticResource PhoneTextLargeStyle}"/>
            <TextBlock Name="PointsTextBlock" Text="UserName" Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="2" HorizontalAlignment="Left" VerticalAlignment="Center" Style="{StaticResource PhoneTextSmallStyle}"/>
            <Image Name="UserImage" Grid.RowSpan="2" Grid.Column="2" Stretch="UniformToFill" /> 
        </Grid>
    </Border>
</UserControl>
